package com.cn.springcloudwechat.mapper.mapper.articleAndMenu;


import com.cn.springcloudwechat.model.articleAndMenu.YmArticleExpand;
import org.springframework.stereotype.Repository;

/**
 * @program: YmArticleExpandMapper
 * @author: Administrator
 * @create: 2018-07-19 9:52
 */
@Repository
public interface YmArticleExpandMapper {
    /**
     * 添加点赞数或阅读数
     *
     * @param record
     * @return
     */
    int insertSelective(YmArticleExpand record);

    /**
     * 查询文章点赞数及阅读量
     *
     * @param articleId
     * @return
     */
    YmArticleExpand getArticleExpandData(Long articleId);

    /**
     * 更新文章阅读量
     *
     * @param articleId
     */
    void updateArticleReadNumber(Long articleId);


}